﻿@model IEnumerable<RestApp.BusinessLogic.BusinessModels.BigReportItem>

@{
    ViewBag.Title = "BigReport";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Отчет по выплатам</h2>

<hr />

<div class="">
    @foreach (var item in Model)
    {
        <table class="table table-hover" style="text-align: center;">
            <thead>
                <tr>
                    <td>Год</td>
                    <td>
                        <a href="@Url.Action("BigReportDetails", new { month = 1, year = item.Year })" target="_blank">Январь</a>
                    </td>
                    <td>
                        <a href="@Url.Action("BigReportDetails", new { month = 2, year = item.Year })" target="_blank">Февраль</a>
                    </td>
                    <td>
                        <a href="@Url.Action("BigReportDetails", new { month = 3, year = item.Year })" target="_blank">Март</a>
                    </td>
                    <td>
                        <a href="@Url.Action("BigReportDetails", new { month = 4, year = item.Year })" target="_blank">Апрель</a>
                    </td>
                    <td>
                        <a href="@Url.Action("BigReportDetails", new { month = 5, year = item.Year })" target="_blank">Май</a>
                    </td>
                    <td>
                        <a href="@Url.Action("BigReportDetails", new { month = 6, year = item.Year })" target="_blank">Июнь</a>
                    </td>
                    <td><a href="@Url.Action("BigReportDetails", new { month = 7, year = item.Year })" target="_blank">Июль</a></td>
                    <td><a href="@Url.Action("BigReportDetails", new { month = 8, year = item.Year })" target="_blank">Август</a></td>
                    <td><a href="@Url.Action("BigReportDetails", new { month = 9, year = item.Year })" target="_blank">Сентябрь</a></td>
                    <td><a href="@Url.Action("BigReportDetails", new { month = 10, year = item.Year })" target="_blank">Октябрь</a></td>
                    <td><a href="@Url.Action("BigReportDetails", new { month = 11, year = item.Year })" target="_blank">Ноябрь</a></td>
                    <td><a href="@Url.Action("BigReportDetails", new { month = 12, year = item.Year })" target="_blank">Декабрь</a></td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        @item.Year
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 1)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 2)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 3)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 4)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 5)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 6)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 7)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 8)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 9)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 10)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 11)
                    </td>
                    <td>
                        @Helpers.AmountFormater(item.YearAmounts, 12)
                    </td>
                </tr>
                <tr>
                    <td>ИТОГО:</td>
                    <td>
                        @Helpers.Amount(item.YearAmounts)
                    </td>
                    <td colspan="12"></td>
                </tr>
            </tbody>
        </table>
    }
</div>